home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / callcdemo.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  203 b   |  14 lines

  1. program CallCDemo;
  2.  
  3. {$L callc.c}  { Or: `callc.o' if you don't have the source }
  4.  
  5. var
  6.   foo : Integer; asmname 'foo'; external;
  7.  
  8. procedure Bar; asmname 'bar';
  9.  
  10. begin
  11.   foo := 42;
  12.   Bar
  13. end.
  14.